
package com.bgybmi.entity;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Group extends Model<Group>
{
    /**
     * 
     */
    private static final long serialVersionUID = -2209344199232075312L;

    public static final Group me = new Group();

    public List<Group> listRole()
    {
        return me.find("select * from group");
    }

    public Group findByGroupName(String group_name)
    {
        return me.findFirst("select * from role where group_name=?", group_name);
    }
    public Group findByGroupId(String group_id)
    {
        return me.findFirst("select * from role where group_id=?", group_id);
    }
}
